package com.feng.exma.controller;

import com.feng.common.vo.ApiRest;
import com.feng.exma.service.ExamDepartService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 考试部门 前端控制器
 * </p>
 *
 * @author feng
 * @since 2023-03-22 17:35:29
 */
@RestController
@RequestMapping("/exma/examDepart")
@CrossOrigin
@Api(tags = "考试模块")
public class ExamDepartController {

    @Autowired
    private ExamDepartService examDepartService;

    @GetMapping
    @ApiOperation("查询所有考试部门")
    public ApiRest departAll() {
        return examDepartService.departAll();
    }
}
